import request from "@/utils/request.ts";
export function getUser() {
  return request.get("/system/user");
}
export function addUser(data:any) {
  return request({
    url:"/system/user",
    method:'post',
    data:data
  });
}
export function updateUser(data:any) {
  return request({
    url:"/system/user",
    method:'put',
    data:data
  });
}
export function getUserList(data:any) {
  return request({
    url:"/system/user/page",
    method:'post',
    data:data
  });
}
export function deleteUser(id:any) {
  return request.delete("/system/user/"+id);
}
